
<div style="margin: 6px;">
<h2>Document: ${doc.text}</h2>

<h3>Create a child document</h3>

<g:form action="create:${doc.ref}" target="editor" message="Document created!">
  <g:textbox name="sys:name" label="Name" required="true"></g:textbox>
  <g:textbox name="dc:title" label="Title"></g:textbox>
  <g:submit action="view:${doc.ref}">Cancel</g:submit>
  <g:submit>Create</g:submit>
</g:form>
 
</div>